package io;

import java.io.*;

public class OisDemo {

    public static void main(String[] args) throws IOException, ClassNotFoundException {
       /* FileInputStream fis = new FileInputStream("person.obj");
        ObjectInputStream ois = new ObjectInputStream(fis);
        Person p=(Person)ois.readObject();
        System.out.println(p);

        ois.close();*/

       /* FileInputStream fos = new FileInputStream("aa.a");
        ObjectInputStream ois = new ObjectInputStream(fos);
        Person person =(Person) ois.readObject();
        System.out.println(person);
        ois.close();*/
        /*FileInputStream fos = new FileInputStream("aa.a");
        ObjectInputStream ois = new ObjectInputStream(fos);
        Person person = (Person) ois.readObject();
        System.out.println(person);
        ois.close();*/


        /*FileInputStream fos = new FileInputStream("aa.a");
        ObjectInputStream ois = new ObjectInputStream(fos);
        Person person = (Person)ois.readObject();
        System.out.println(person);
        ois.close();*/



    }
}
